package com.hivclassifier;

import com.hivclassifier.gui.MainScreen;
import com.hivclassifier.utils.Logger;

public class HivClassifierApplication {
	
	/**
	 * Create the GUI and show it. For thread safety, this method should be
	 * invoked from the event-dispatching thread.
	 */
	private static void createAndShowGUI() {

		MainScreen firstScreen = new MainScreen();
		
		firstScreen.setLocationRelativeTo(null); // center the window
		firstScreen.setVisible(true);
		
		HivClassifierController.init();
		Logger.getInstance().setLogger(firstScreen.getLogTextField());
	}

	public static void main(String[] args) {

		javax.swing.SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				createAndShowGUI();
			}
		});
	}
}